﻿<%@ Page Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="DataBinding.aspx.cs"
    Inherits="ControlExplorer.C1Gallery.DataBinding" Title="Data Bind" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1Gallery"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        数据绑定</h3>
    <cc1:C1Gallery ID="C1Gallery1" runat="server" ShowTimer="True" Width="750px" Height="416px"
        ThumbsDisplay="4" LoadOnDemand="true">
    </cc1:C1Gallery>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" runat="server">
    <p>
        <strong>C1Gallery</strong> 支持数据绑定，它可以绑定图像URL，标题、链接或者模板中的任何数据。
    </p>
    <p>设置下列属性，来开启数据绑定功能： </p>
		<ul>
		<li><strong>DataSourceID </strong>- 设置数据源的ID。</li>
		<li><strong>DataCaptionField </strong>-&nbsp; 载入图像标题来设置数据源字段。</li>
		<li><strong>DataLinkUrlField </strong>-&nbsp; 载入链接来设置数据源字段。</li>
        <li><strong>DataImageUrlField </strong>-&nbsp; 载入图像URL来设置图像数据源字段。</li></ul>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
    <asp:CheckBox ID="CheckBox1" AutoPostBack="true" runat="server" Text="按需载入"
        OnCheckedChanged="CheckBox1_CheckedChanged" />
</asp:Content>
